package com.ziqikeji.xianyan.repository.recommend;

import com.ziqikeji.xianyan.common.BaseDao;
import com.ziqikeji.xianyan.entity.article.Article;
import com.ziqikeji.xianyan.entity.recommend.ArticleRecommend;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 故事推荐
 * @author liuyu
 */
@Repository
public interface ArticleRecommendDao extends BaseDao<ArticleRecommend, String> {
    /**
     * 通过文章获取到已经推荐的数据
     * @param article
     * @return
     */
    ArticleRecommend queryByArticle(Article article);
}
